package com.example.bdd.demo.steps;

import com.example.bdd.demo.pages.Page1Service;
import io.cucumber.java.en.And;

public class Page1Step {

    private Page1Service pageService;

    public Page1Step(Page1Service pageService) {
        this.pageService = pageService;
    }


    @And("^I can open link page$")
    public void clickBaidu() {
        pageService.clickBaidu();
    }

    @And("^I can close link page$")
    public void closeBaidu() {
        pageService.closeBaidu();
    }
}
